<?php
namespace app\index\controller;

use think\Controller;
use think\Db;


class Common extends Controller
{
	protected function _initialize()
	{
		//dump(config());
		if(!config('web_state'))
		{
			halt('网站维护中');
		}
	}

	public function checkaccount()
	{
		//if(!this_>isAjax()) halt('页面不存在');
	$account=input('account');
	if(Db::name('user')->where('account',$account)->find())
	{
		echo 0; 
	}else{
		echo 1;
	}
	}
}